﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Microsoft.Samples.ServiceHosting.StorageClient;

namespace Ciripescu_WebRole.Entities
{
    public class Comment : TableStorageEntity
    {
        public Comment(string user, string content)
            : base("default",string.Format("{0:D19}", DateTime.MaxValue.Ticks - DateTime.UtcNow.Ticks))
        {
            this.User = user;
            this.Content = content;
        }
        public Comment()
        {
        }
        public string User { get; set; }
        public string Email { get; set; }
        public string Url { get; set; }
        public string Name { get; set; }
        public string Content { get; set; }
        public int Vote { get; set; }
        public int nbVotes { get; set; }
        public string IP { get; set; }
        public string AdminReply { get; set; }
        public DateTime Date { get; set; }
        public bool IsAproved { get; set; }
    }
}
